FROM rapidsai/base:23.10-cuda12.0-py3.10

LABEL authors="lpe234"

ENV TZ="Asia/Shanghai"

WORKDIR /home/metareal

ADD ./requirements /home/metareal/requirements

RUN pip install -r requirements/base.txt -r requirements/pc.txt -r requirements/pm.txt -r requirements/tw.txt -r requirements/yc.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

ADD . /home/metareal

EXPOSE 5000

# 超时 & 单进程
ENTRYPOINT ["gunicorn", "--threads", "20", "--bind", "0.0.0.0:5000", "--preload", "web_app:app"]
